package com.company;

interface Some{
     void doSome();
}

/*interface  Other{
    void doOther();
}

abstract class AbstractSome implements Some{
       public abstract void doSome();
       public void doService(){
           System.out.println("do some service");
       }
}
    public  void doOther(){
        System.out.println("do other things");
    }
*/



public class MainII {
    public static void main(String[] args) {
        Some s = new Some(){
            public void doSome() {
            System.out.println("do something");
             }
             public void doService() {
             System.out.println("do some service");
             }
        };
            s.doSome();

    }
}